﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PPTHelper.BLL.TimingRoot
{
    /// <summary>
    /// 并行时间节点容器
    /// </summary>
    public class ParallelContainer : TimeNodeContainer
    {
        /// <summary>
        /// 运行所有动画
        /// </summary>
        public override void Run(TriggerInfo triggerInfo)
        {
            Console.WriteLine("执行Parallel容器。");
            foreach (var timeNode in TimeNodeList)
            {
                timeNode.Run(triggerInfo);
            }
        }
    }
}
